# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=joomlascan
pkgver=1.2
pkgrel=5
groups=('blackarch' 'blackarch-webapp' 'blackarch-scanner')
pkgdesc='Joomla scanner scans for known vulnerable remote file inclusion paths and files.'
arch=('any')
url='http://packetstormsecurity.com/files/62126/joomlascan-1.2.py.txt.html'
license=('custom:unknown')
depends=('python2' 'python2-httplib2')
source=("$pkgname::https://dl.packetstormsecurity.net/UNIX/scanners/$pkgname-$pkgver.py.txt")
sha512sums=('bbd34ce97e9e2dd7eb043b6fc474048c77a98544aeec15bfda294c40c4cb1298b97b8f355e1b8b8712d9b6524d182ce4f85b8361df07d8dbff205bc3f2b36183')

prepare() {
  sed -i 's|#!usr/bin/python|#!/usr/bin/python2|' $pkgname
}

package() {
  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
}

